'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const {
        router,
        controller
    } = app;

    // 轨迹列表
    router.post('/gis/getLocationByTagId', controller.admin.gis.getLocationByTagId);
    // 根据obectCode查询tagId,供查询实时轨迹用
    router.post('/gis/getTagIdByObjectCode', controller.admin.gis.getTagIdByObjectCode);
    router.post('/h5/getH5ActiveList', controller.h5active.h5Active.getH5ActiveList);
    router.post('/h5/getH5ActiveCaculate', controller.h5active.h5Active.getH5ActiveCaculate);
};